package o;

import android.os.Bundle;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.huawei.secure.android.common.intent.SafeBundle;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public final class bqf {
    private final List<b> ˏ = new ArrayList();

    public static final class b {
        private final String ˊ;
        private final String ˎ;

        private b(String str, String str2) {
            this.ˎ = str;
            this.ˊ = str2;
        }

        @NonNull
        public String ˎ() {
            return bkz.ˊ(this.ˎ);
        }

        @NonNull
        public String ˋ() {
            return bkz.ˊ(this.ˊ);
        }

        public String toString() {
            return "{target: " + ˎ() + ", value: " + ˋ() + "}";
        }
    }

    private bqf() {
    }

    @NonNull
    public List<b> ˋ() {
        return Collections.unmodifiableList(this.ˏ);
    }

    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append('[');
        for (b bVar : this.ˏ) {
            stringBuilder.append(bVar.toString()).append(", ");
        }
        stringBuilder.append(']');
        return stringBuilder.toString();
    }

    @NonNull
    public static bqf ˊ(@NonNull List<Bundle> list) {
        bqf o_bqf = new bqf();
        Object obj = null;
        for (Bundle safeBundle : list) {
            SafeBundle safeBundle2 = new SafeBundle(safeBundle);
            Object string = safeBundle2.getString("String.value");
            if (TextUtils.isEmpty(string)) {
                string = 1;
            } else {
                o_bqf.ˏ.add(new b(safeBundle2.getString("String.target", "feature"), string));
                string = obj;
            }
            obj = string;
        }
        if (obj != null) {
            boc.ˎ.ˏ("Modules", "Found one or more empty module.");
        }
        return o_bqf;
    }
}
